<?php

	include 'cpr/cproject.php';
	
	CoreProject::Using('parser.template');
	
	$tpl = new cpr_Parser_Template('/var/www/test/body.tpl');
	$tpl->SetContext('textLabel', 'new Label');
	
	$tpl->SetContext('arr',
		array(
			array('label' => 'label0', 'value' => 10),
			array('label' => 'label1', 'value' => 11),
			array('label' => 'label2', 'value' => 12)
		)
	);
	
	echo $tpl->Write();